package com.adaxi.adc.business.manager.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 优惠券信息表
 * @TableName adc-coupon
 */
@TableName(value ="adc_coupon")
@Data
public class Coupon implements Serializable {
    /**
     * 优惠券ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 乘客ID
     */
    @TableField(value = "passenger_id")
    private Long passengerId;

    /**
     * 优惠券代码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 优惠券面值
     */
    @TableField(value = "value")
    private BigDecimal value;

    /**
     * 有效期至
     */
    @TableField(value = "expiry_date")
    private Date expiryDate;

    /**
     * 逻辑删除状态字段: 0 表示未删除, 1 表示已删除
     */
    @TableField(value = " is_deleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}